Skip to content

The run page reads one state for who must act - #537

Merged
coderhelm[bot] merged 3 commits into
mainfrom
one-wait-state
Dec 1, 2026
Merged

coderhelm[bot] merged 3 commits into
mainfrom
one-wait-state

Conversation

@nambok

@nambok nambok commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The run page's "Needs a person" badge and its top line now come from one state, so the page can't say "Waiting on: a person" next to "Nothing needed from you". A person is named only when the platform types the wait as a person's (CoderHelm/coderhelm-platform#956). When the only wait left is the repository's required approval, the line reads exactly "Needs 1 approval from a person (repo rule) on #N", and #N links to the pull request.

Changes

  • waiting-line.ts: the line is built from the standing's needs_person. A server line that disagrees with it is replaced by the line built from the standing. New lines cover the repo-rule approval (with its count), CoderHelm's next fix round on its own review, building_plan, and a held draft whose reasons are CoderHelm's own.
  • Run page: the draft-hold badge reads the hold's needs_person. A hold GitHub refused to mark ready is CoderHelm's to try again, never "Mark it ready on GitHub". New titles for building_plan and plan_needs_access. The finished-run fix-round text no longer offers to name what "only a person can do". The top line links its pull request number.
  • api.ts and openapi-fields.ts: RunDraftHold.needs_person and RunMergeStanding.approvals, from the platform's OpenAPI document at the platform commit.

Verification

  • npm run lint, npm run typecheck, node scripts/openapi-fields.mjs --check
  • Playwright, e2e/audit-runs.spec.ts and e2e/run-draft-hold.spec.ts, 46 passed. New tests cover:
    • CoderHelm's own review asking for changes is never a person in the line or the badge, even with an older server line that says so;
    • a run still building the other repository of its plan asks nobody;
    • the repo-rule approval reads exactly "Needs 1 approval from a person (repo rule) on chore: new Google tags for coderhelm.com and app.coderhelm.com #101." with the pull request linked;
    • a held draft whose reasons are CoderHelm's own never asks a person;
    • a draft GitHub refused to mark ready says nothing is needed from you.

Merge order: this merges after CoderHelm/coderhelm-platform#956. If #956's head changes, openapi-fields.ts is regenerated against main (node scripts/openapi-fields.mjs --ref main) once #956 is in.

coderhelm[bot]

This comment was marked as outdated.

@coderhelm

coderhelm Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of 1002bc7 completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

coderhelm[bot]

This comment was marked as outdated.

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved 5dccee0 (merged)

@coderhelm
coderhelm Bot merged commit 1002bc7 into main Dec 1, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant